package com.csu.mapper;

import com.csu.model.CartItem;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CartMapper {
    void insertToCart(String username, String itemId, int quantity);
    void updateCart(String username, String itemId, int quantity);
    void deleteCart(String username, String itemId);
    List<CartItem> getCartListByUsername(String username);
    CartItem getCartItem(String username, String itemId);
}
